package edu.zju.gis.dldsj.dao;

import edu.zju.gis.dldsj.entity.WfRun;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WfRunMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(WfRun record);

    int insertSelective(WfRun record);

    WfRun selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(WfRun record);

    int updateByPrimaryKey(WfRun record);

    List<WfRun> selectByDag(String dagId);

    List<WfRun> selectByState(String state);

    List<WfRun> selectByDagAndState(@Param("dagId") String dagId, @Param("state") String state);
}